
#include <iostream>
#include "Thread_Poll.hpp"
#include <pthread.h>
#include <unistd.h>


int main()
{
    std::unique_ptr<thread_poll<int>>& tp = thread_poll<int>::GetInstance();
    tp->run();
    srand(time(nullptr)^getpid());
    int tmp;
    while(1)
    {   
        tmp = rand()%10;
        tp->push(tmp);
    }
    return 0;
}